Skip to content

Commit

Permalink
apply pretter
Browse files Browse the repository at this point in the history
  • Loading branch information
aborazmeh committed Jul 9, 2024
1 parent 0aebfac commit edf28c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ function noShaddaWithMadda(node: TxtStrNode, text: string, context: Readonly<Tex
function noShaddaWithSukun(node: TxtStrNode, text: string, context: Readonly<TextlintRuleContext>) {
const { report, locator, RuleError } = context;

const matches = text.matchAll(
new RegExp(`(${regex.shadda})${regex.sukun}|${regex.sukun}${regex.shadda}`, "g")
);
const matches = text.matchAll(new RegExp(`(${regex.shadda})${regex.sukun}|${regex.sukun}${regex.shadda}`, "g"));
for (const match of matches) {
const index = match.index ?? 0;
const matchRange = [index, index + match[0].length] as const;
Expand Down

0 comments on commit edf28c7

Please sign in to comment.