Skip to content

Commit 4e4368d

Browse files
authored
[skip changelog] Allow library names to start with number (arduino#1136)
Previously, the Arduino library specification required the library.properties `name` field value to start with a letter. Before Arduino IDE 1.8.4, library folder names starting with a number were not supported. Because the library folder for Library Manager installations is named according to the library.properties name value, it was necessary to apply the same restriction to the name value. It was determined that enough time has passed since the Arduino IDE 1.8.4 release to reflect this change in the Arduino library specification.
1 parent 8d6dc02 commit 4e4368d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/library-specification.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ The library.properties file is a key=value properties list. Every field in this
4040
otherwise below, **all fields are required**. The available fields are:
4141

4242
- **name** - the name of the library. Library names must contain only basic letters (A-Z or a-z) and numbers (0-9),
43-
spaces ( ), underscores (\_), dots (.) and dashes (-). They cannot start with a number. Note that libraries with a
44-
`name` value starting with `Arduino` will no longer be allowed
43+
spaces ( ), underscores (\_), dots (.) and dashes (-). They must start with a letter or number. They must contain at
44+
least one letter. Note that libraries with a `name` value starting with `Arduino` will no longer be allowed
4545
[addition to the Library Manager index](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ) as these names
4646
are now reserved for official Arduino libraries.
4747
- **version** - version of the library. Version should be [semver](http://semver.org/) compliant. 1.2.0 is correct; 1.2

0 commit comments

Comments
 (0)