Bug Tracker

Modify

Ticket #4573 (closed enhancement: invalid)

Opened 5 years ago

Last modified 2 years ago

[validate] - string.format

Reported by: yuniti Owned by: joern
Priority: major Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

The string.format function inside of validate is a quite useful one, and one that I had actually already written myself before I started to use jQuery.

Just a suggestion to include this version instead of the one currently there, for 2 reasons:

1) Code reuse (string formatting is very useful in localization) 2) Optimization: my version uses positional regex, and also can be used on any string (so that a string doesn't have to be marked with $.format, saving space in minimization) 3) Xml useage: my string.format version can also format a string using an XML source, quite useful for ajax calls

File attached. Thanks!

Attachments

jquery.validate.new_string.js Download (35.3 KB) - added by yuniti 5 years ago.
Updated validate file

Change History

Changed 5 years ago by yuniti

Updated validate file

comment:1 Changed 5 years ago by dmethvin

  • Owner set to joern
  • Component changed from unfilled to plugin

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

Please file plugin bugs with the appropriate author on their bug tracker.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.