UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

13 lines (9 loc) 224 B
define(['../lang/toString'], function(toString) { /** * Escape RegExp string chars. */ function escapeRegExp(str) { return toString(str).replace(/\W/g,'\\$&'); } return escapeRegExp; });