Skip to content

Commit

Permalink
Merge pull request #5 from nmtigor/b-fix_use_of_trim
Browse files Browse the repository at this point in the history
Fix use of trim()
  • Loading branch information
lojjic authored Jul 31, 2023
2 parents df9ed0b + 0c2230b commit 38b3654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generateBidiData.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function generateBidiCharTypesData() {
const txt = await response.text()
const classMap = new Map()
txt.split('\n').forEach(line => {
line.trim()
line = line.trim()
if (!line || line.startsWith('#')) return
const match = line.match(/^([A-Z0-9.]+)\s*;\s([\w]+)*/)
if (match) {
Expand Down Expand Up @@ -86,7 +86,7 @@ async function generateBracketsData() {
let pairs = new Map()
let reversePairs = new Map()
txt.split('\n').forEach(line => {
line.trim()
line = line.trim()
if (!line || line.startsWith('#')) return
const match = line.match(/^([A-Z0-9.]+)\s*;\s*([A-Z0-9.]+)\s*;\s*o/)
if (match) {
Expand Down Expand Up @@ -136,7 +136,7 @@ async function generateMirroringData() {
let pairs = new Map()
let reversePairs = new Map()
txt.split('\n').forEach(line => {
line.trim()
line = line.trim()
if (!line || line.startsWith('#')) return
const match = line.match(/^([A-Z0-9.]+)\s*;\s*([A-Z0-9.]+)\s*/)
if (match) {
Expand Down

0 comments on commit 38b3654

Please sign in to comment.