BVB Source Codes

reactide Show old-value.js Source code

Return Download reactide: download old-value.js Source code - Download reactide Source code - Type:.js
  1. (function() {
  2.   var OldValue, utils;
  3.  
  4.   utils = require('./utils');
  5.  
  6.   OldValue = (function() {
  7.     function OldValue(unprefixed, prefixed, string, regexp) {
  8.       this.unprefixed = unprefixed;
  9.       this.prefixed = prefixed;
  10.       this.string = string;
  11.       this.regexp = regexp;
  12.       this.regexp || (this.regexp = utils.regexp(this.prefixed));
  13.       this.string || (this.string = this.prefixed);
  14.     }
  15.  
  16.     OldValue.prototype.check = function(value) {
  17.       if (value.indexOf(this.string) !== -1) {
  18.         return !!value.match(this.regexp);
  19.       } else {
  20.         return false;
  21.       }
  22.     };
  23.  
  24.     return OldValue;
  25.  
  26.   })();
  27.  
  28.   module.exports = OldValue;
  29.  
  30. }).call(this);
  31.  
downloadold-value.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top