aria-api

access ARIA information from JavaScript
git clone https://git.ce9e.org/aria-api.git

commit
d9e471d63d8851f4a28b3b4deb639c9ea78b13fb
parent
2d62a3c5026da87acff5455b430a723687485d81
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-11-01 11:43
lint: double parens around assignment in condition

Diffstat

M lib/name.js 8 ++++----

1 files changed, 4 insertions, 4 deletions


diff --git a/lib/name.js b/lib/name.js

@@ -16,17 +16,17 @@ const getPseudoContent = function(el, pseudoSelector) {
   16    16 
   17    17 	let match;
   18    18 	while (tail.length) {
   19    -1 		if (match = tail.match(/^"([^"]*)"/)) {
   -1    19 		if ((match = tail.match(/^"([^"]*)"/))) {
   20    20 			ret.push(match[1]);
   21    -1 		} else if (match = tail.match(/^([a-z-]+)\(([^)]*)\)/)) {
   -1    21 		} else if ((match = tail.match(/^([a-z-]+)\(([^)]*)\)/))) {
   22    22 			if (match[1] === 'attr') {
   23    23 				ret.push(el.getAttribute(match[2]) || '');
   24    24 			}
   25    -1 		} else if (match = tail.match(/^([a-z-]+)/)) {
   -1    25 		} else if ((match = tail.match(/^([a-z-]+)/))) {
   26    26 			if (match[1] === 'open-quote' || match[1] === 'close-quote') {
   27    27 				ret.push('"');
   28    28 			}
   29    -1 		} else if (match = tail.match(/^\//)) {
   -1    29 		} else if ((match = tail.match(/^\//))) {
   30    30 			ret = [];
   31    31 		} else {
   32    32 			// invalid content, ignore