Project

General

Profile

Actions

Patch #4307

closed

Models fails to validate localized field names since ruby 1.9.1p343 and 1.9.2p

Added by Alexey Froloff almost 15 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Ruby support
Target version:
-
Start date:
2009-11-29
Due date:
% Done:

0%

Estimated time:

Description

Revisions 24544 (trunk) and 25941 (ruby_1_9_1) comes with "\d, \s and \w are now non Unicode class. [ruby-dev:39026]", which breaks validations like "validates_format_of :name, :with => /^[\w\s\'\-]*$/i".

Replace \s with [:space:] and \w with [:word:], patch attached.


Files


Related issues

Related to Redmine - Defect #5152: Cannot use certain characters for user and role names.Closed2010-03-22

Actions
Actions

Also available in: Atom PDF