• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

the-darc / string-mask
100%

Build:
DEFAULT BRANCH: master
Repo Added 15 May 2015 10:14PM UTC
Files 1
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.2.2
  • 0.3.0
  • develop
  • master

pending completion
28

Pull #11

travis-ci

web-flow
fix: Option usedefaults re-assign

```js
var options = {
  reverse: true,
  usedefaults: false
}
var formatter = new StringMask('+00 (00) 0000-0000')
```
Old code;

```js
usedefaults: this.options.usedefaults || this.options.reverse
```

OR operator (||) return false on left side and return true on right side.

OR for defaults can be convenient because it is short and easy to write but to booleans parameters it was not good.
Pull Request #11: fix: Option usedefaults re-assign

4 of 4 new or added lines in 1 file covered. (100.0%)

139 of 139 relevant lines covered (100.0%)

462.15 hits per line

Relevant lines Covered
Build:
Build:
139 RELEVANT LINES 139 COVERED LINES
462.15 HITS PER LINE
Source Files on master
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28 master fix: Option usedefaults re-assign ```js var options = { reverse: true, usedefaults: false } var formatter = new StringMask('+00 (00) 0000-0000') ``` Old code; ```js usedefaults: this.options.usedefaults || this.options.reverse ``` OR operat... Pull #11 04 Mar 2017 02:22PM UTC web-flow travis-ci pending completion  
27 master chore: update travis-ci node version push 02 Apr 2016 03:38AM UTC the-darc travis-ci pending completion  
26 develop chore: update travis-ci node version push 02 Apr 2016 03:35AM UTC the-darc travis-ci pending completion  
25 develop chore: update travis-ci node version push 02 Apr 2016 03:30AM UTC the-darc travis-ci pending completion  
22 0.3.0 Merge branch 'release/0.3.0' push 02 Apr 2016 03:01AM UTC the-darc travis-ci pending completion  
24 master Merge branch 'release/0.3.0' push 02 Apr 2016 03:01AM UTC the-darc travis-ci pending completion  
23 develop Merge tag '0.3.0' into develop v0.3.0 push 02 Apr 2016 03:01AM UTC the-darc travis-ci pending completion  
21 develop docs: improve README.md push 02 Apr 2016 02:45AM UTC the-darc travis-ci pending completion  
20 develop test: improve tests and coverage push 01 Apr 2016 09:41PM UTC the-darc travis-ci pending completion  
19 master Fix process method to manage undefined value input Pull #8 02 Mar 2016 10:53AM UTC cdupoiron travis-ci pending completion  
See All Builds (16)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc