Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10706 closed bug (worksforme)

The regex /\s+/ appears three times

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: misc Version:
Keywords: Cc:
Blocked by: Blocking:

Description

We are assigning the regex /\s+/ to 2 different variables, and we have a stand-alone instance. Why not reuse one variable every single time?

Change History (1)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledmisc
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

This is because the source is developed in sep module files, each with its own IIFE closure, therefore the localized reference must be made in each.

Note: See TracTickets for help on using tickets.