Permalink
Browse files

LINCENSE and format

  • Loading branch information...
1 parent 42d28b9 commit 06e7d17ffebfcc39a17bf6f0230e868188b85f16 @newghost committed Nov 12, 2015
Showing with 9 additions and 9 deletions.
  1. +1 −1 LICENSE
  2. +2 −2 package.json
  3. +1 −1 svr/ourjs.js
  4. +5 −5 {lib → svr}/string.js
View
@@ -1,4 +1,4 @@
-Copyright (c) 2014, Kris Zhang<kris.zhang@gmail.com>
+Copyright (c) 2015, Kris Zhang<c2u@live.cn>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
View
@@ -1,8 +1,8 @@
{
"name": "ourjs",
- "description": "Free Blog Engine, Forum System, Website Template and CMS Platform based on Node.JS",
+ "description": "Free Blog Engine, Forum System, Website Template and CMS Platform based on Node.JS and Redis",
"repository" : "http://github.com/newghost/ourjs",
- "version": "0.1.0",
+ "version": "0.1.1",
"dependencies": {
"websvr" : "0.1.x"
, "websvr-redis" : "0.0.x"
View
@@ -22,7 +22,7 @@ var fs = require('fs')
/*
* js library used for both front-end and back-end
*/
-require('../lib/string.js')()
+require('./string.js')()
var WEBSVR_CONFIG = config.WEBSVR_CONFIG
@@ -3,20 +3,20 @@
var init = function() {
if(typeof String.prototype.format !== 'function') {
String.prototype.format = function () {
- for (var b = this, a = 0; a < arguments.length; ++a) b = b.replace(new RegExp("\\{" + a + "\\}", "g"), arguments[a]);
+ for (var b = this, a = 0; a < arguments.length; ++a) b = b.replace(new RegExp("\\{" + a + "\\}", "g"), arguments[a])
return b
- };
+ }
}
if(typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
- return this.replace(/^\s+|\s+$/g, '');
+ return this.replace(/^\s+|\s+$/g, '')
}
}
- };
+ }
typeof module !== 'undefined'
? (module.exports = init)
- : init();
+ : init()
})();

0 comments on commit 06e7d17

Please sign in to comment.