Skip to content

Commit

Permalink
CustomCharacterClass' toHTMLString should replace all instances of do…
Browse files Browse the repository at this point in the history
…uble quotes, not just the first one (#866)
  • Loading branch information
rmondello authored Jan 21, 2025
1 parent b42863f commit 11d3809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/PasswordRulesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CustomCharacterClass {
}
get characters() { return this._characters; }
toString() { return `[${this._characters.join("")}]`; }
toHTMLString() { return `[${this._characters.join("").replace('"', """)}]`; }
toHTMLString() { return `[${this._characters.join("").replace(/"/g, """)}]`; }
};

// MARK: Lexer functions
Expand Down

0 comments on commit 11d3809

Please sign in to comment.