OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('options.internet', function() { | 5 cr.define('options.internet', function() { |
6 /** @const */ var EditableTextField = options.EditableTextField; | 6 /** @const */ var EditableTextField = options.EditableTextField; |
7 | 7 |
8 /** | 8 /** |
9 * The regular expression that matches an IP address. String to match against | 9 * The regular expression that matches an IP address. String to match against |
10 * should have all whitespace stripped already. | 10 * should have all whitespace stripped already. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 result.push(parseInt(matches[i], 10)); | 102 result.push(parseInt(matches[i], 10)); |
103 } | 103 } |
104 return result.join('.'); | 104 return result.join('.'); |
105 }, | 105 }, |
106 }; | 106 }; |
107 | 107 |
108 return { | 108 return { |
109 IPAddressField: IPAddressField, | 109 IPAddressField: IPAddressField, |
110 }; | 110 }; |
111 }); | 111 }); |
OLD | NEW |